package net.hn.hnms.biz.project.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("发票信息")
public class ContractInvoiceReq extends BaseReq{
    @ApiModelProperty(value = "id")
    private String contractInvoiceId;

    @ApiModelProperty(value = "发票编号")
    private String invoiceCode;

    @ApiModelProperty(value = "开票单位")
    private String invoiceCompany;

    @ApiModelProperty(value = "发票类型（0增值税专用发票1普通发票2专业发票）")
    private String invoiceType;

    @ApiModelProperty(value = "发票金额")
    private BigDecimal invoiceAmount;

    @ApiModelProperty(value = "开票时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    private Date invoiceDate;

    @ApiModelProperty(value = "附件路径")
    private String invoiceFilePath;

    @ApiModelProperty(value = "附件名称")
    private String invoiceFileName;

    @ApiModelProperty(value = "合同ID")
    private String contractId;

    @ApiModelProperty(value = "0开票1收票")
    private String type;

    @ApiModelProperty(value = "结算ID")
    private String contractPaymentId;

    @ApiModelProperty(value = "ossId")
    private String ossId;

    @ApiModelProperty(value = "煤矿编码")
    private String mineCode ;

}
